package Day;

import java.util.Scanner;

public class Day5 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String s1=in.next();
        String s2=in.next();
        int[]ch1=new int[26];

        for(int i=0;i<s1.length();i++){
            int x=s1.charAt(i)-'A';
            ch1[x]++;
        }
        for (int i=0;i<s2.length();i++){
            int y=s2.charAt(i)-'A';
            ch1[y]--;
        }

        for(int i=0;i<26;i++){
            if(ch1[i]<0){
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
    }
}
